﻿@model NetSurveillance.WebApp.Models.ChangePasswordModel
@{
    ViewBag.Title = "Change Password";
}

<h2>修改密码</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true, "Password change was unsuccessful. Please correct the errors and try again.")
    <div>
        <fieldset class="inline-form">
            <legend>账号信息</legend>

            <div class="editor-entry">
                <div class="editor-label">
                    @Html.LabelFor(m => m.OldPassword)
                </div>
                <div class="editor-field">
                    @Html.PasswordFor(m => m.OldPassword)
                    @Html.ValidationMessageFor(m => m.OldPassword)
                </div>
            </div>

            <div class="editor-entry">
                <div class="editor-label">
                    @Html.LabelFor(m => m.NewPassword)
                </div>
                <div class="editor-field">
                    @Html.PasswordFor(m => m.NewPassword)
                    @Html.ValidationMessageFor(m => m.NewPassword)
                    <label>新密码长度必须大于 6</label>
                </div>
            </div>

            <div class="editor-entry">
                <div class="editor-label">
                    @Html.LabelFor(m => m.ConfirmPassword)
                </div>
                <div class="editor-field">
                    @Html.PasswordFor(m => m.ConfirmPassword)
                    @Html.ValidationMessageFor(m => m.ConfirmPassword)
                </div>
            </div>

            <div class="buttonsContain controlBottom">
                <div class="rightContain">
                    <input id="btnSubmit" type="submit" value="保存" />
                </div>
            </div>
        </fieldset>
    </div>
}
